<?php
//微信用户
$this->group(['domain' => env('DOMAIN_ADMIN'),'prefix' => '/wechat/manager/user/'], function() {
	//列表展示
	$this->get('view/list', 'Manager\UserController@getLists');
	//更新备注
	$this->post('update/remark', 'Manager\UserController@updateRemark');
	//更新用户标签
	$this->post('update/tag', 'Manager\UserController@updateTag');	
	//同步微信用户
	$this->post('update/sync', 'Manager\UserController@asyncUser');
});

//微信用户标签
$this->group(['domain' => env('DOMAIN_ADMIN'),'prefix' => '/wechat/user/tag/'], function() {
	//列表展示
	$this->get('view/list', 'Manager\UserTagController@getLists');
	//更新备注
	$this->post('update', 'Manager\UserTagController@updateTag');
	//删除标签
	$this->delete('delete/{id}', 'Manager\UserTagController@deleteTag')->where('id','[0-9]+');
});